package com.java.java8.util.functioninterfacedemo;


/**
 * @author liyanhao
 * @Date 2023-03-26 18:24
 */
@FunctionalInterface
interface BiFuncationDemo<T, U, R> {
    T add(U u, R r);
}

class Test {
    public static void main(String[] args) {
        BiFuncationDemo<Integer, Integer, Integer> myAdd = (from, to) -> {
            return from + to;
        };
        System.out.println(myAdd.add(1,2));
    }
}
